<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//默认登录页
Route::get('pxkjLogin','Home\LoginController@index');
//验证码
Route::get('login/code','Home\LoginController@code');
//验证
Route::post('login/verify','Home\LoginController@verify');
//退出登录
Route::get('login/logout','Home\LoginController@logout');
//下线获取订单信息
Route::post('home/branch/getOrder','Home\BranchController@getOrder');
Route::post('home/branch/getTestOrder','Home\BranchController@getTestOrder');
//下游确认订单
Route::get('home/branch/sbConfirm','Home\BranchController@sbConfirm');
//推送订单给下线
Route::get('home/branch/sbOrder','Home\BranchController@sbOrder');
Route::get('admin/push/htPushOrder','Admin\PushController@htPushOrder');
Route::get('admin/push/ryPushOrder','Admin\PushController@ryPushOrder');
Route::get('admin/push/fivePushOrder','Admin\PushController@fivePushOrder');
Route::get('admin/push/pushOrderFulu','Admin\PushController@pushOrderFulu');
Route::get('admin/push/testFulu','Admin\PushController@testFulu');
Route::get('admin/push/testFulu1','Admin\PushController@testFulu1');
Route::get('admin/push/getOrderInfo','Admin\PushController@getOrderInfo');
Route::get('admin/callback/getOrderInfo','Admin\CallBackController@getOrderInfo');
Route::get('admin/push/orderInfo','Admin\PushController@orderInfo');
//下线回调订单
Route::get('home/branch/autoConfirmOrder','Home\BranchController@autoConfirmOrder');
Route::post('admin/push/autoConfirmOrder','Admin\PushController@autoConfirmOrder');
Route::post('admin/push/ry_AutoConfirmOrder','Admin\PushController@ry_AutoConfirmOrder');
Route::post('admin/callback/ry_AutoConfirmHfOrder','Admin\CallBackController@ry_AutoConfirmHfOrder');
Route::post('admin/callback/ry_AutoConfirmOrder','Admin\CallBackController@ry_AutoConfirmOrder');
Route::post('admin/callback/xh_AutoConfirmOrder','Admin\CallBackController@xh_AutoConfirmOrder');
Route::post('admin/callback/qq_AutoConfirmOrder','Admin\CallBackController@qq_AutoConfirmOrder');
Route::get('admin/callback/qq_AutoConfirmOrder','Admin\CallBackController@qq_AutoConfirmOrder');
Route::post('admin/callback/fiveAutoConfirmOrder','Admin\CallBackController@fiveAutoConfirmOrder');
Route::get('admin/callback/fywAutoConfirmOrder','Admin\CallBackController@fywAutoConfirmOrder');
Route::post('admin/callback/hfAutoConfirmOrder','Admin\CallBackController@hfAutoConfirmOrder');
Route::post('admin/push/fulu_AutoConfirmOrder','Admin\PushController@fulu_AutoConfirmOrder');
//手动查询福禄订单状态
Route::post('admin/push/getOrderInfo','Admin\PushController@getOrderInfo');
//话费下单
Route::post('telcharge/add','Admin\TelChargeController@add');
//手动查询订单状态
Route::post('telcharge/getOrderInfo','Admin\TelChargeController@getOrderInfo');
//测试回调
Route::post('index/callbackTest','Home\IndexController@callbackTest');
//获取授信额度
Route::post('telcharge/getBalance','Admin\TelChargeController@getBalance');
//下线确认订单信息
Route::post('home/branch/orderStatus','Home\BranchController@orderStatus');
Route::post('home/branch/orderStatusTest','Home\BranchController@orderStatusTest');
Route::get('home/branch/orderStatusTest','Home\BranchController@orderStatusTest');



//邮件路由
//Route::get('send_mail','MailController@mail_send');
//登录中间件
Route::group(['prefix'=>'home','namespace'=>'Home','middleware'=>'isLogin'],function(){
    //首页
    Route::get('index/index','IndexController@index');

    //商户首页
    Route::get('branch','IndexController@branch');

    //商户管理--订单列表
    Route::get('branch/order','BranchController@order');

    //商户管理--商品列表
    Route::get('branch/goods','BranchController@goods');

//首页子页
    Route::get('index/desktop','IndexController@desktop');
//测试获取订单信息
    Route::get('index/info','IndexController@info');
    Route::get('index/inf','IndexController@inf');
    Route::get('index/getOrderInfo','IndexController@getOrderInfo');
//用户路由
    Route::resource('user','UserController');
//批量删除用户
    Route::post('user/delAll','UserController@delAll');
//批量删除订单
    Route::post('order/delAll','OrderController@delAll');
//导出记录
    Route::get('orderlist','OrderController@orderlist');
    //拆单列表
    Route::get('splitlist','OrderController@splitlist');
    //话费列表
    Route::get('calllist','OrderController@calllist');
    //创建订单
    Route::get('createorder','OrderController@createorder');
    //添加订单
    Route::get('addorder','OrderController@addorder');
    //添加订单到数据库
    Route::post('order/doaddorder','OrderController@doaddorder');
    //问题订单
    Route::get('orderError','OrderController@orderError');
//批量删除下线
    Route::post('branch/delAll','BranchController@delAll');
//手动退回失败订单
    Route::get('branch/orderError','BranchController@orderError');
//手动退回成功订单
    Route::get('branch/orderSuccess','BranchController@orderSuccess');
//订单路由
    Route::resource('order','OrderController');
//下线路由
    Route::resource('branch','BranchController');
//权限路由
    Route::resource('permission','PermissionController');
//excel路由
    Route::get('excel/export','ExcelController@export');
    Route::get('excel/exportOrder','ExcelController@exportOrder');
    Route::get('excel/exportHf','ExcelController@exportHf');
});


